home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
lang
/
prolog19
/
routine.pro
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1986-05-05
|
384 b
|
12 lines
append([],L,L).
append([Z|L1],L2,[Z|L3]) :- append(L1,L2,L3).
printstring([]).
printstring([H|T]) :- put(H), printstring(T).
ret(X) :- X(_),retract(X(_)),ret(X).
ret(X) :- X(_,_),retract(X(_,_)),ret(X).
ret(X) :- X(_,_,_),retract(X(_,_,_)),ret(X).
ret(X) :- nl,print(X,' has been retracted').
/* final atn program */